<%@ include file="/WEB-INF/jsp/include.jsp"%>

<table width="760" border="0" background="img/background4.gif">
  <tr>
    <td align="center">
    <h1 class="admin_notice">*** Welcome Administrator ***</h1>
    </td>
  </tr>

  <tr>
    <td>

    <table border="1" background="img/background4.gif">

      <tr>
        <td rowspan="4">Speaker</td>
        <td>Name *</td>
        <td><form:input path="speakerName" /> <form:errors path="speakerName"
          cssClass="errorMsg" /></td>
      </tr>
      <tr>
        <td>Organization</td>
        <td><form:input path="speakerOrganization" /></td>
      </tr>
      <tr>
        <td>Home Page</td>
        <td><form:input path="speakerHomepage" /></td>
      </tr>
      <tr>
        <td>Picture</td>
        <td><input type="file" name="speakerPictureFile" /></td>
      </tr>

      <tr>
        <td colspan="2">Date *</td>
        <td><form:select path="dateMonth">
          <c:forEach var="month" items="${months}">
            <form:option value="${month}" label="${month.description}" />
          </c:forEach>
        </form:select> / <form:select path="dateDay">
          <c:forEach var="day" begin="1" end="31" step="1">
            <form:option value="${day}" />
          </c:forEach>
        </form:select> / <form:select path="dateYear">
          <c:forEach var="year" begin="${today.year + 1900 - 1}" end="${today.year + 1900 + 3}"
            step="1">
            <form:option value="${year}" />
          </c:forEach>
        </form:select> (mm:dd:yy)</td>
      </tr>

      <tr>
        <td colspan="2">Topic *</td>
        <td><form:input path="topic" /> <form:errors path="topic" cssClass="errorMsg" /></td>
      </tr>

      <tr>
        <td colspan="2">Abstract</td>
        <td><form:input path="topicAbstract" /></td>
      </tr>

      <tr>
        <td rowspan="2">Paper</td>
        <td>URL</td>
        <td><form:input path="paperUrl" /></td>
      </tr>
      <tr>
        <td>File upload</td>
        <td><input type="file" name="paperFile" /></td>
      </tr>

      <tr>
        <td rowspan="3">Lecture coordinator</td>
        <td>Name</td>
        <td><form:input path="coordinatorName" /></td>
      </tr>
      <tr>
        <td>E-Mail</td>
        <td><form:input path="coordinatorEmail" /></td>
      </tr>
      <tr>
        <td>Phone</td>
        <td><form:input path="coordinatorPhone" /></td>
      </tr>

      <tr>
        <td colspan="2">Sponsor name</td>
        <td><form:input path="sponsorName" /></td>
      </tr>

      <tr>
        <td colspan="2">Notice<br />
        (*This can be used to notify people of time or place changes.)</td>
        <td><form:input path="notice" /></td>
      </tr>

      <tr>
        <td colspan="3">Maximum size of uploading file is 10MB. You can change this setting on a
        file "myicesscheduler-servlet.xml", if you wish.</td>
      </tr>

    </table>

    <hr />

    <form:errors path="timeSlotCommands" cssClass="errorMsg" />

    <table border="0" background="img/background4.gif">

      <thead>
        <tr>
          <th>Enabled</th>
          <th colspan="3">Time Slots</th>
          <th>Note</th>
          <th>Type</th>
          <th>Place</th>
        </tr>
      </thead>

      <tbody>
        <c:set var="count" value="0" />
        <c:forEach var="timeSlot" items="${lectureCommand.timeSlotCommands}">

          <tr>
            <td><form:checkbox path="timeSlotCommands[${count}].enabled" /></td>

            <td><fmt:formatDate value="${timeSlot.beginDate}" type="time" timeStyle="short" /></td>
            <td>-</td>
            <td><fmt:formatDate value="${timeSlot.endDate}" type="time" timeStyle="short" /></td>

            <td><form:input path="timeSlotCommands[${count}].note" size="5" /></td>

            <td><form:radiobuttons path="timeSlotCommands[${count}].reservationType"
              items="${reservationTypes}" itemValue="reservationTypeId" itemLabel="description" /></td>

            <td><form:input path="timeSlotCommands[${count}].location" size="10" /></td>

          </tr>

          <c:set var="count" value="${count+1}" />
        </c:forEach>
      </tbody>

    </table>
    </td>
  </tr>
</table>